package dosgi.core.util;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Helper class which builds a map consisting of argument's type and corresponding value.
 * 
 * @author Jaroslaw Janik
 */
public class MethodParameterBuilder {

	private Map<Class<?>, Object> parametersList = new LinkedHashMap<Class<?>, Object>();
	
	/**
	 * Puts argument's value under specific type key.
	 * 
	 * @param first Type of argument.
	 * @param second Value of argument.
	 */
	public void put(Class<?> first, Object second) {
		parametersList.put(first, second);
	}
	
	/**
	 * Returns arguments' map;
	 * 
	 * @return Map with argument with order in which keys were inserted into the map.
	 */
	public Map<Class<?>, Object> get() {
		return parametersList;
	}
}
